import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页查询成品入库单数据列表
  GetMatchPageProductInStockBills(data?: any) {
    return request({
      url: '/api/ProductInStock/GetMatchPageProductInStockBills',
      method: 'post',
      data,
    });
  },
  //创建成品入库单
  CreateProductInStockBill(data?: any) {
    return request({
      url: '/api/ProductInStock/CreateProductInStockBill',
      method: 'post',
      data,
    });
  },
  //红冲成品入库单（传入库单code）
  RedFlushProductInStockBill(data?: any) {
    return request({
      url: '/api/ProductInStock/RedFlushProductInStockBill',
      method: 'post',
      data,
    });
  },
  //查询成品/半成品入库单详情
  GetSingleProductInStockBill(data?: any) {
    return request({
      url: '/api/ProductInStock/GetSingleProductInStockBill',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
